from ctypes import *

class Location(Structure):
    _fields_ = (
        ('id', c_int),
        ('node', c_int)
    )

class Demand(Structure):
    _fields_ = (
        ('pickup', POINTER(Location)),
        ('stops', Location*5),
        ('real_distance', c_double)
    )
pickup_loc = Location(23)
_stops = (Location*5)()
demands = Demand(pointer(pickup_loc),_stops,10.2)
ts = c_double(45.6)
TSPointer = POINTER(c_double)

test = CDLL('test1.dll',winmode=32)
test.handle(pointer(demands), TSPointer(TSPointer(ts)))